<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../mycss/style.css" />
<link href="../js/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="../js/jBox/Skins/Gray/jbox.css" type="text/css">
<link rel="stylesheet" href="../js/laypage/skin/laypage.css" media="all">
<script type="text/javascript" src="../js/jquery-1.11.1.min.js"></script>
<script src="../js/laypage/laypage.js"></script>
<script language='javascript' src='../js/jBox/jquery.jBox-2.3.min.js'></script>
<script language='javascript' src='../js/jBox/i18n/jquery.jBox-zh-CN.js'></script>
<script type="text/javascript" src="../js/contractTable.js"></script>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="../js/bootstrap/js/bootstrap.min.js"></script>
<title>【合同创建】</title>
</head>
<!-- onload():页面加载后调用查询合同方法 -->
<body id="tablePage" onload="listContract(1)">
 <div class="container">	
 	<div class="row"><!--  页面地址导航：合同管理~~>合同创建  -->
 		<ol class="breadcrumb">
		  <li><a href="#">合同管理</a></li>
		  <li class="active">合同创建</li>
		</ol>
		<blockquote>
			<p class="">合同创建</p>
		</blockquote> 	
		<hr/>
 	</div>
	<div class="row  col-md-offset-8">
		<input class="btn btn-default addBtn" type="button" value="创建" />&nbsp;&nbsp;
		<input class="btn btn-default submmitBtn" type="button" value="提交" />
	</div>
	<div class="row">
		<table id="conTable" class="table table-bordered">
			<thead>
				<tr class="info"><th></th><th><input id="checkall" type="checkbox" name="checkedAll" value=""/>全选</th><th>合同名称</th><th>合同类型</th><th>状态</th><th>最后操作时间</th><th>待处理人</th><th>操作</th></tr>				
			</thead>
			<tbody></tbody>
			<tfoot><tr><td colspan="8"><div id="fenye"></div></td></tr></tfoot>
		</table>		
	
	</div>
 	
 	<!-- 模态框 修改合同页面开始 -->
 	<div class="modal fade" id="updateContract" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">	
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">修改合同</h4>					
				</div>
				<form class="form-horizontal" role="form" id="updateContractForm">
										
					<div class="modal-body">
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同编号：
							</label>

							<div class="col-sm-8">
								<input type="text" class="form-control" id="contractId2"
									name="contractId" style="width: 250px" maxlength="15" readonly="readonly" value="0001"/>
									
							<!-- <p class="form-control-static" id="contractId2"></p> -->
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同名称：
							</label>

							<div class="col-sm-8">
								<input type="text" class="form-control" id="conName2"
									name="conName" style="width: 250px" maxlength="15"
									placeholder="XXX公司销售合同" />
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同类型：
							</label>

							<div class="col-sm-8">								
								<select id="conType2" class="form-control" name="conType" style="width: 120px">
									<option value="销售合同" selected="selected">销售合同</option>
									<option value="技术合同">技术合同</option>
									<option value="运输合同">运输合同</option>
								</select>
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同金额：
							</label>

							<div class="col-sm-5 input-group">
								<span class="input-group-addon" style="margin-left:5px">￥</span>
								<input type="text" class="form-control" name="conPrice"
									id="conPrice2" placeholder="人民币" aria-describedby="basic-addon2">
								<span class="input-group-addon" id="basic-addon2">元</span>
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">甲方：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conPartyA"
									id="conPartyA2" style="width: 250px" placeholder="XXX公司" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">乙方：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conPartyB"
									id="conPartyB2" style="width: 250px" placeholder="XXX公司" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">甲方企业经营许可证号：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conBusinessNumA"
									id="conBusinessNumA2" style="width: 250px" placeholder="鲁No.0569" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">乙方企业经营许可证号：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conBusinessNumB"
									id="conBusinessNumB2" style="width: 250px" placeholder="京B2-20050088" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同内容：
							</label>

							<div class="col-sm-8">
								<textarea class="form-control" name="conContext" 
									id="conContext2" rows="10" placeholder="经山东临沂泰兴公司（以下称买受方）与北京急速科技有限公司（以下称出卖方）友好协商，特订立以下条款：..................."></textarea>
							</div>
						</div>
						
																	
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">备注信息：
							</label>

							<div class="col-sm-8">
								<textarea class="form-control" name="conRemark" 
									id="conRemark2" rows="5"></textarea>
							</div>
						</div>
					</div>
																					
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭
						</button>
						<button type="button" class="btn btn-primary" id="btnUpdateSubmit">
							确认</button>
					</div>
				</form>
			</div>
			<!-- /.modal-content -->
			
		</div>
	</div>
 	<!-- 模态框 修改合同页面结束 -->
 	
	<!--模态框 创建合同页面开始-->
	<div class="modal fade" id="addContract" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">	
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">创建合同</h4>
				</div>
				<form class="form-horizontal" role="form" id="addContractForm"  enctype ="multipart/form-data">
										
					<div class="modal-body">
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同名称：
							</label>

							<div class="col-sm-8">
								<input type="text" class="form-control" id="conName1"
									name="conName" style="width: 250px" maxlength="15"
									placeholder="XXX公司销售合同" />
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同类型：
							</label>

							<div class="col-sm-8">								
								<select id="conType1" class="form-control" name="conType" style="width: 120px">
									<option value="销售合同" selected="selected">销售合同</option>
									<option value="技术合同">技术合同</option>
									<option value="运输合同">运输合同</option>
								</select>
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同金额：
							</label>

							<div class="col-sm-5 input-group">
								<span class="input-group-addon" style="margin-left:5px">￥</span>
								<input type="text" class="form-control" name="conPrice"
									id="conPrice1" placeholder="人民币" aria-describedby="basic-addon2">
								<span class="input-group-addon" id="basic-addon2">元</span>
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">甲方：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conPartyA"
									id="conPartyA1" style="width: 250px" placeholder="XXX公司" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">乙方：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conPartyB"
									id="conPartyB1" style="width: 250px" placeholder="XXX公司" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">甲方企业经营许可证号：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conBusinessNumA"
									id="conBusinessNumA1" style="width: 250px" placeholder="鲁No.0569" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">乙方企业经营许可证号：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conBusinessNumB"
									id="conBusinessNumB1" style="width: 250px" placeholder="京B2-20050088" />
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同附件：
							</label>

							<div class="col-sm-8">
								<input type="file" name="file" />
							</div>
						</div>
												
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同内容：
							</label>

							<div class="col-sm-8">
								<textarea class="form-control" name="conContext" 
									id="conContext1" rows="10" placeholder="经山东临沂泰兴公司（以下称买受方）与北京急速科技有限公司（以下称出卖方）友好协商，特订立以下条款：..................."></textarea>
							</div>
						</div>
						
																	
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">备注信息：
							</label>

							<div class="col-sm-8">
								<textarea class="form-control" name="conRemark" 
									id="conRemark1" rows="5"></textarea>
							</div>
						</div>
					</div>
																					
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭
						</button>
						<button type="button" class="btn btn-primary" id="btnAddsubmit">
							确认</button>
					</div>
				</form>
			</div>
			<!-- /.modal-content -->
			
		</div>
	</div>
	<!--模态框 创建合同页面结束-->
	
</div>
</body>
</html>